var webPath = "";
var editor;
$(document).ready(function(){
	webPath = $("#webPath").val();
	var msg = $("#message").val();
	if(msg != ""){
		alert(msg);
	}
});

function goBack(){
	document.form1.action = webPath + "/admin/message!listAudit.action";
	document.form1.submit();
}

function submit(value){
	if(value == 2){
		var reason = string.trim($("#rejectReason").val());
		if(reason == ""){
			alert("请输入驳回原因！");
			return false;
		}
		$("#reason").val(reason);
	}
	$("#msgState").val(value);
	document.form1.action = webPath + "/admin/message!audit.action";
	document.form1.submit();
}